package com.loopy.fruns.service.impl;

import com.loopy.fruns.dao.AdminDAO;
import com.loopy.fruns.dao.impl.AdminDAOImpl;
import com.loopy.fruns.entity.Admin;
import com.loopy.fruns.service.AdminService;

public class AdminServiceImpl implements AdminService {
    private AdminDAO adminDAO=new AdminDAOImpl();
    @Override
    public Admin login(Admin admin) {
        return adminDAO.queryAdminByUserNameAndPassword(admin.getUsername(),admin.getPassword());
    }
}
